package operate;
import book.Book;
import book.BookList;
import user.User;
import java.util.Iterator;
public class Display implements IOperate{
    /**
     * 负责人：青梅不甜
     * 功能：展示书籍
     * 把调用集合把书所有的书的信息显示出来
     * 参数：无
     * 返回类型：void
     */
    @Override
    public void operate(User user, BookList bookList) {
        System.out.println("------------------------------------书籍展示------------------------------------");
        Iterator<Book> it = bookList.bookLists.iterator();
        for(int i = 0;i < bookList.bookLists.size();i++) {
            System.out.println(bookList.bookLists.get(i).toString());
        }
        System.out.println("------------------------------------书籍展示------------------------------------");
    }
}
